package com.xbongbong.pro.workflow.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/**
 * @author 吴峰
 * @date 2021/07/22 11:00
 */
@Getter
public enum WorkflowOperateEnum {
    /**
     *
     */
    ADD(1, "新建"),
    UPDATE(2, "编辑"),
    DELETE(3, "删除"),

    UPDATE_BATCH(4, "批量编辑"),
    DELETE_BATCH(5, "批量删除"),
    CUSTOM_EXECUTE(6, "自定义工作流"),
    ;


    private Integer type;

    private String memo;

    WorkflowOperateEnum(Integer type, String memo) {
        this.type = type;
        this.memo = memo;
    }

    public static List<Integer> updateOperateList() {
        return Arrays.asList(UPDATE.getType(), UPDATE_BATCH.getType());
    }
}
